class Config:
    # ... 其他配置 ...
    OPENAI_API_KEY = 'your-api-key-here'  # 替换为实际的API密钥
    # XUNFEI_APPID = '487db48f'
    # XUNFEI_API_KEY = '9a9e145bc4179101ea56262b52a15934'
    # XUNFEI_API_SECRET = 'NjliNGY4N2I4MjVhODM1NTQ2MDYzZWJm' 
    
    # JWT配置
    JWT_SECRET_KEY = '6ce2fb6254f97644b944f9df4f7fc52897e5e431ad82021517b6fae866b6e96c'
    JWT_ACCESS_TOKEN_EXPIRES = 3600  # 1小时
    JWT_TOKEN_LOCATION = ['headers']
    JWT_HEADER_TYPE = 'Bearer'  # 指定token类型
    JWT_HEADER_NAME = 'Authorization'  # 指定header名称
    
    # CORS配置
    CORS_SUPPORTS_CREDENTIALS = True
    CORS_ORIGINS = ["http://localhost:5173"]
    CORS_HEADERS = ['Content-Type', 'Authorization'] 